package org.mics.cyy.backUser.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Where;
import org.mics.jpa.entity.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 菜单
 * @author mics
 * @date 2020年6月9日
 * @version  1.0
 */
@Data
@Entity
@Table(name = "t_menu")
@Where(clause = "bln_del = 0")
@EqualsAndHashCode(callSuper = false)
public class MenuDO extends BaseEntity {
	
	 @Column(name = "name", columnDefinition = "varchar(32) comment '菜单名称' ")
	 private String name; 
	 
	 @Column(name = "permission", columnDefinition = "varchar(32) comment '权限标识' ")
	 private String permission;
	 
	 @Column(name = "icon", columnDefinition = "varchar(128) comment '菜单图标' ")
	 private String icon; 
	 
	 @Column(name = "url", columnDefinition = "varchar(128) comment '菜单路径' ")
	 private String url;
	 
	 @Column(name = "parent_id", columnDefinition = "varchar(32) comment '上级菜单' ")
	 private String parentId;
	 
	 @Column(name = "type", columnDefinition = "int default 0 comment '类型0菜单、1按钮、2目录' ")
	 private Integer type=0;
	 
	 @Column(name = "view", columnDefinition = "int default 0 comment '显示0显示，1隐藏' ")
	 private  Integer view=0;
}
